
import request, {
  Method
} from '@/plugins/request.js';



//自己的博客
export function list (params) {
  return request({
    url: '/buyer/blog/list',
    method: Method.POST,
    needToken: true,
    headers:{
      "Content-Type": "application/json"
    },
    data:params
  });
}

//别人的博客
export function otherList (params) {
  return request({
    url: '/buyer/blog/otherList',
    method: Method.POST,
    needToken: true,
    headers:{
      "Content-Type": "application/json"
    },
    data:params
  });
}

export function getById (params) {
  return request({
    url: '/buyer/blog/getById',
    method: Method.POST,
    needToken: true,
    headers:{
      "Content-Type": "application/json"
    },
    data:params
  });
}

export function add (params) {
  return request({
    url: '/buyer/blog/add',
    method: Method.POST,
    needToken: true,
    headers:{
      "Content-Type": "application/json"
    },
    data:params
  });
}
export function edit (params) {
  return request({
    url: '/buyer/blog/edit',
    method: Method.POST,
    needToken: true,
    headers:{
      "Content-Type": "application/json"
    },
    data:params
  });
}
export function del (params) {
  return request({
    url: '/buyer/blog/del',
    method: Method.POST,
    needToken: true,
    headers:{
      "Content-Type": "application/json"
    },
    data:params
  });
}


